package com.cake.dao;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxMemberRank;

public interface XxMemberRankMapper extends IBaseDao<XxMemberRank> {
    int deleteByPrimaryKey(Long id);

    int insert(XxMemberRank record);

    int insertSelective(XxMemberRank record);

    XxMemberRank selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(XxMemberRank record);

    int updateByPrimaryKey(XxMemberRank record);
    
    /**
     * 通过会员等级表示查询出会员等级信息
     * @param grade
     * @return
     */
   XxMemberRank selectMemberRankByGrede(Integer grede);
   /**
    * 根据会员等级名称查询会员等级信息
    * @param grede
    * @return
    */
   XxMemberRank selectMemberRankByName(String name);
}